package tecpointbenchmark.model.dto;

/**
 * ResultDTO
 * 
 * @author Tom & Fredrik
 */
public final class ResultDTO {

	private int number;
	private String message;
	private long time;
	private long points;

	public ResultDTO() {
		this.setNumber(2);
		this.setMessage("");
		this.setTime(0);
		this.setPoints(0);
	}

	/**
	 * 
	 * @param number
	 *            A number indicating how the test was aborted. 0.
	 *            timer-abortion 1. manual 2. error
	 * @param message
	 *            Already formated text from the benchmark module.
	 * @param time
	 *            Time in ms since 1970 when the benchmark was executed
	 */
	public ResultDTO(int number, String message, long time, int pts) {
		this.setNumber(number);
		this.setMessage(message);
		this.setTime(time);
		this.setPoints(pts);
	}

	/**
	 * @param number
	 *            the number to set
	 */
	public void setNumber(int number) {
		this.number = number;
	}

	/**
	 * @return the number
	 */
	public int getNumber() {
		return this.number;
	}

	/**
	 * @param message
	 *            the message to set
	 */
	public void setMessage(String message) {
		this.message = message;
	}

	/**
	 * @return the message
	 */
	public String getMessage() {
		return this.message;
	}

	/**
	 * @param time
	 *            the time to set
	 */
	public void setTime(long time) {
		this.time = time;
	}

	/**
	 * @return Returns the time in ms, from 1970, the test was executed
	 */
	public long getTime() {
		return this.time;
	}

	/**
	 * @param the points for the benchmark
	 */
	public void setPoints(long points) {
		this.points = points;
	}

	/**
	 * @return Returns the points in a numerical value
	 */
	public long getPoints() {
		return this.points;
	}
}
